/** 
 * File-Name:ESTAction.java
 *
 * Created on 2011-10-16 下午05:00:56
 * 
 * @author: Neo (neolimeng@gmail.com)
 * Software Engineering Institute, Peking University, China
 * 
 * Copyright (c) 2009, Peking University
 * 
 *
 */
package com.debugassistant.web.action;

import neoutil.CommonAction;
import neoutil.Page;

import com.debugassistant.dao.ESTRepository;
import com.debugassistant.entity.EST;

/**
 * Description:
 * 
 * @author: Neo (neolimeng@gmail.com) Software Engineering Institute, Peking
 *          University, China
 * @version 1.0 2011-10-16 下午05:00:56
 */
public class ESTAction extends CommonAction {
	private EST est;
	private Page<EST> page = new Page<EST>(15);

	public String getESTByUUID() {
		String uuid = getRequestParameter("uuid");
		est = ESTRepository.get(uuid);
		return SUCCESS;
	}

	public String getAllESTs() {
		page = ESTRepository.getAll(page);
		return SUCCESS;
	}

	// ===== Getters and Setters ===== //
	public EST getEst() {
		return est;
	}

	public void setEst(EST est) {
		this.est = est;
	}

	public Page<EST> getPage() {
		return page;
	}

	public void setPage(Page<EST> page) {
		this.page = page;
	}

}
